package com.bupt.order.entity;

import java.util.Date;
import javax.persistence.*;

@Table(name = "orders")
public class Order {
    @Id
    private Integer id;

    /**
     * 由redis自增方式确定
     */
    @Column(name = "order_id")
    private String orderId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "film_id")
    private String filmId;

    @Column(name = "film_name")
    private String filmName;

    @Column(name = "film_date")
    private Date filmDate;

    @Column(name = "time_period")
    private String timePeriod;

    @Column(name = "tickets_num")
    private Integer ticketsNum;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取由redis自增方式确定
     *
     * @return order_id - 由redis自增方式确定
     */
    public String getOrderId() {
        return orderId;
    }

    /**
     * 设置由redis自增方式确定
     *
     * @param orderId 由redis自增方式确定
     */
    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return user_id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * @return film_id
     */
    public String getFilmId() {
        return filmId;
    }

    /**
     * @param filmId
     */
    public void setFilmId(String filmId) {
        this.filmId = filmId;
    }

    /**
     * @return film_name
     */
    public String getFilmName() {
        return filmName;
    }

    /**
     * @param filmName
     */
    public void setFilmName(String filmName) {
        this.filmName = filmName;
    }

    /**
     * @return film_date
     */
    public Date getFilmDate() {
        return filmDate;
    }

    /**
     * @param filmDate
     */
    public void setFilmDate(Date filmDate) {
        this.filmDate = filmDate;
    }

    /**
     * @return time_period
     */
    public String getTimePeriod() {
        return timePeriod;
    }

    /**
     * @param timePeriod
     */
    public void setTimePeriod(String timePeriod) {
        this.timePeriod = timePeriod;
    }

    /**
     * @return tickets_num
     */
    public Integer getTicketsNum() {
        return ticketsNum;
    }

    /**
     * @param ticketsNum
     */
    public void setTicketsNum(Integer ticketsNum) {
        this.ticketsNum = ticketsNum;
    }
}